FROM ruby:2.6.3
WORKDIR /usr/src/saas_website

RUN apt-get update -qq && apt-get install -y nodejs yarn postgresql-client

ENV RAILS_ENV production
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client
COPY Gemfile* ./
RUN bundle install
COPY . .
RUN chmod +x rails.sh
EXPOSE 3000